package com.abstracts;

//抽象类
public abstract class Aimal {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    private String age;

    public Aimal() {
    }

    public Aimal(String name, String age) {
        this.name = name;
        this.age = age;
    }

    //    抽象方法
    public abstract void eat();
}
